package com.example.demo.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
public class Page<T> {

    @ApiModelProperty("当前页码")
    private int pageNumber;

    @ApiModelProperty("总页数")
    private int pageTotal;

    @ApiModelProperty("每页记录数")
    private int pageSize;

    @ApiModelProperty("总记录数")
    private int allRecords;

    private List<T> list;

}
